import { defineStore } from "pinia";

export const cubasdocStore = defineStore("cubasdocStore", {
  state: () => {
    return {
      //公司
      data: [],

      //合同
      contractList: [],
      //存货
      inventoryList: [],

      //部门
      depts:[]
    };
  },
  actions: {
    setData(val) {
      this.data=val;
      
    },
    setContractList(val) {
      this.contractList=val;
      
    },
    setInventoryList(val) {
      this.inventoryList=val;
      
    },

    setDepts(val) {
      this.depts=val;
      
    },
  },
  getters: {

  },
});

